﻿<Window x:Class="AppDemo.Window9"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:qu="clr-namespace:QueueLoad.controls"
        Title="Window9">
    <Grid>
        <StackPanel>
            <Button Click="Button_Click">Search</Button>
            <TextBox x:Name="aaaa"></TextBox>
            <ScrollViewer HorizontalScrollBarVisibility="Visible">
                <ItemsControl x:Name="cc" Height="200">
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel Orientation="Horizontal"/>
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <StackPanel>
                                <qu:ImageItemBase DataContext="{Binding DataContext,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ContentPresenter}}" DataContextChanged="ImageItemBase_DataContextChanged"/>
                                <!--<Image Source="{Binding XPath=mediaurl}" Width="{Binding XPath=width}" Height="{Binding XPath=height}"/>-->
                            </StackPanel>
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                </ItemsControl>
            </ScrollViewer>
        
        </StackPanel>
    </Grid>
</Window>
